package com.coolingme.general.apply;

/**
 * 具体状态角色
 *
 * @author wangyue
 * @date 2020-09-26 0:00
 */
public class ConcreteStateA extends AbstractState {

    @Override
    public void handle() {
        System.out.println("ConcreteStateA...");
        // 切换状态
        this.context.setCurrentState(Context.STATE_B);
        System.out.println("切换状态B...");
    }
}
